package com.sanbi.erp.core.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsVo {
    private Integer id;

    private String goodsSn;

    private String name;

    private Integer categoryId;

    private Integer brandId;

    private String[] gallery;

    private String keywords;

    private String brief;

    private Boolean isOnSale;

    private Short sortOrder;

    // 商品图片
    private String picUrl;

    private String shareUrl;

    private Boolean isNew;

    private Boolean isHot;

    private String unit;

    private LocalDateTime addTime;

    private LocalDateTime updateTime;

    //上架时间
    private LocalDateTime onSaleTime;


    //下架时间
    private LocalDateTime offSaleTime;

    private Boolean deleted;

    private String detail;

    //优选标识：0 非优选，1 优选商品
    private Boolean isBest;

    //优选类型
    private Byte bestType;

    //优选时间
    private LocalDateTime bestDate;

    //市场价
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal marketPrice;

    private Integer batchNumber;

    //商品是否收藏标识 (订阅)
    private Integer isCollect;

    //重量
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal weight;

    //长
    private Integer length;

    //宽
    private Integer width;

    //高
    private Integer height;

    //体积重
    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal cubageWeight;

    @JsonSerialize(using=ToStringSerializer.class)
    private BigDecimal freightPrice;//运费

    private GoodsDto goodsDto;

    private String saleVolume;
}
